num = eval(input("请输入0-1000内的数字："))
n1,num = num%10,num//10
n2,n3 = num%10,num//10
print("所有数字之和",(n1+n2+n3))